package com.ciei.dpagm.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * @author pp
 * @date 2020/8/21 11:00
 **/
public enum GenderEnum {
    /**
     * 性别为未定义
     */
    UNDEFINED(0, "未定义"),

    /**
     * 性别为男
     */
    MALE(1, "男"),

    /**
     * 性别为女
     */
    FEMALE(2, "女");

    /**
     * 性别id
     */
    @EnumValue
    private Integer genderId;
    /**
     * 性别
     */
    private String gender;

    GenderEnum(Integer genderId, String gender) {
        this.genderId = genderId;
        this.gender = gender;
    }

    public Integer getGenderId() {
        return genderId;
    }

    public String getGender() {
        return gender;
    }
}
